(0) Obligation:
Runtime Complexity TRS:
The TRS R consists of the following rules:
minus(x, 0) → x
minus(s(x), s(y)) → minus(x, y)
quot(0, s(y)) → 0
quot(s(x), s(y)) → s(quot(minus(x, y), s(y)))
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
inc(s(x)) → s(inc(x))
inc(0) → s(0)
log(x) → logIter(x, 0)
logIter(x, y) → if(le(s(0), x), le(s(s(0)), x), quot(x, s(s(0))), inc(y))
if(false, b, x, y) → logZeroError
if(true, false, x, s(y)) → y
if(true, true, x, y) → logIter(x, y)
Rewrite Strategy: FULL
(1) DecreasingLoopProof (EQUIVALENT transformation)
The following loop(s) give(s) rise to the lower bound Ω(n1):
The rewrite sequence
minus(s(x), s(y)) →+ minus(x, y)
gives rise to a decreasing loop by considering the right hand sides subterm at position [].
The pumping substitution is [x / s(x), y / s(y)].
The result substitution is [ ].
(2) BOUNDS(n^1, INF)
(3) RenamingProof (EQUIVALENT transformation)
Renamed function symbols to avoid clashes with predefined symbol.
(4) Obligation:
Runtime Complexity Relative TRS:
The TRS R consists of the following rules:
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
quot(0', s(y)) → 0'
quot(s(x), s(y)) → s(quot(minus(x, y), s(y)))
le(0', y) → true
le(s(x), 0') → false
le(s(x), s(y)) → le(x, y)
inc(s(x)) → s(inc(x))
inc(0') → s(0')
log(x) → logIter(x, 0')
logIter(x, y) → if(le(s(0'), x), le(s(s(0')), x), quot(x, s(s(0'))), inc(y))
if(false, b, x, y) → logZeroError
if(true, false, x, s(y)) → y
if(true, true, x, y) → logIter(x, y)
S is empty.
Rewrite Strategy: FULL
(5) TypeInferenceProof (BOTH BOUNDS(ID, ID) transformation)
Infered types.
(6) Obligation:
TRS:
Rules:
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
quot(0', s(y)) → 0'
quot(s(x), s(y)) → s(quot(minus(x, y), s(y)))
le(0', y) → true
le(s(x), 0') → false
le(s(x), s(y)) → le(x, y)
inc(s(x)) → s(inc(x))
inc(0') → s(0')
log(x) → logIter(x, 0')
logIter(x, y) → if(le(s(0'), x), le(s(s(0')), x), quot(x, s(s(0'))), inc(y))
if(false, b, x, y) → logZeroError
if(true, false, x, s(y)) → y
if(true, true, x, y) → logIter(x, y)
Types:
minus :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
0' :: 0':s:logZeroError
s :: 0':s:logZeroError → 0':s:logZeroError
quot :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
le :: 0':s:logZeroError → 0':s:logZeroError → true:false
true :: true:false
false :: true:false
inc :: 0':s:logZeroError → 0':s:logZeroError
log :: 0':s:logZeroError → 0':s:logZeroError
logIter :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
if :: true:false → true:false → 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
logZeroError :: 0':s:logZeroError
hole_0':s:logZeroError1_0 :: 0':s:logZeroError
hole_true:false2_0 :: true:false
gen_0':s:logZeroError3_0 :: Nat → 0':s:logZeroError
(7) OrderProof (LOWER BOUND(ID) transformation)
Heuristically decided to analyse the following defined symbols:
minus,
quot,
le,
inc,
logIterThey will be analysed ascendingly in the following order:
minus < quot
quot < logIter
le < logIter
inc < logIter
(8) Obligation:
TRS:
Rules:
minus(
x,
0') →
xminus(
s(
x),
s(
y)) →
minus(
x,
y)
quot(
0',
s(
y)) →
0'quot(
s(
x),
s(
y)) →
s(
quot(
minus(
x,
y),
s(
y)))
le(
0',
y) →
truele(
s(
x),
0') →
falsele(
s(
x),
s(
y)) →
le(
x,
y)
inc(
s(
x)) →
s(
inc(
x))
inc(
0') →
s(
0')
log(
x) →
logIter(
x,
0')
logIter(
x,
y) →
if(
le(
s(
0'),
x),
le(
s(
s(
0')),
x),
quot(
x,
s(
s(
0'))),
inc(
y))
if(
false,
b,
x,
y) →
logZeroErrorif(
true,
false,
x,
s(
y)) →
yif(
true,
true,
x,
y) →
logIter(
x,
y)
Types:
minus :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
0' :: 0':s:logZeroError
s :: 0':s:logZeroError → 0':s:logZeroError
quot :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
le :: 0':s:logZeroError → 0':s:logZeroError → true:false
true :: true:false
false :: true:false
inc :: 0':s:logZeroError → 0':s:logZeroError
log :: 0':s:logZeroError → 0':s:logZeroError
logIter :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
if :: true:false → true:false → 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
logZeroError :: 0':s:logZeroError
hole_0':s:logZeroError1_0 :: 0':s:logZeroError
hole_true:false2_0 :: true:false
gen_0':s:logZeroError3_0 :: Nat → 0':s:logZeroError
Generator Equations:
gen_0':s:logZeroError3_0(0) ⇔ 0'
gen_0':s:logZeroError3_0(+(x, 1)) ⇔ s(gen_0':s:logZeroError3_0(x))
The following defined symbols remain to be analysed:
minus, quot, le, inc, logIter
They will be analysed ascendingly in the following order:
minus < quot
quot < logIter
le < logIter
inc < logIter
(9) RewriteLemmaProof (LOWER BOUND(ID) transformation)
Proved the following rewrite lemma:
minus(
gen_0':s:logZeroError3_0(
n5_0),
gen_0':s:logZeroError3_0(
n5_0)) →
gen_0':s:logZeroError3_0(
0), rt ∈ Ω(1 + n5
0)
Induction Base:
minus(gen_0':s:logZeroError3_0(0), gen_0':s:logZeroError3_0(0)) →RΩ(1)
gen_0':s:logZeroError3_0(0)
Induction Step:
minus(gen_0':s:logZeroError3_0(+(n5_0, 1)), gen_0':s:logZeroError3_0(+(n5_0, 1))) →RΩ(1)
minus(gen_0':s:logZeroError3_0(n5_0), gen_0':s:logZeroError3_0(n5_0)) →IH
gen_0':s:logZeroError3_0(0)
We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).
(10) Complex Obligation (BEST)
(11) Obligation:
TRS:
Rules:
minus(
x,
0') →
xminus(
s(
x),
s(
y)) →
minus(
x,
y)
quot(
0',
s(
y)) →
0'quot(
s(
x),
s(
y)) →
s(
quot(
minus(
x,
y),
s(
y)))
le(
0',
y) →
truele(
s(
x),
0') →
falsele(
s(
x),
s(
y)) →
le(
x,
y)
inc(
s(
x)) →
s(
inc(
x))
inc(
0') →
s(
0')
log(
x) →
logIter(
x,
0')
logIter(
x,
y) →
if(
le(
s(
0'),
x),
le(
s(
s(
0')),
x),
quot(
x,
s(
s(
0'))),
inc(
y))
if(
false,
b,
x,
y) →
logZeroErrorif(
true,
false,
x,
s(
y)) →
yif(
true,
true,
x,
y) →
logIter(
x,
y)
Types:
minus :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
0' :: 0':s:logZeroError
s :: 0':s:logZeroError → 0':s:logZeroError
quot :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
le :: 0':s:logZeroError → 0':s:logZeroError → true:false
true :: true:false
false :: true:false
inc :: 0':s:logZeroError → 0':s:logZeroError
log :: 0':s:logZeroError → 0':s:logZeroError
logIter :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
if :: true:false → true:false → 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
logZeroError :: 0':s:logZeroError
hole_0':s:logZeroError1_0 :: 0':s:logZeroError
hole_true:false2_0 :: true:false
gen_0':s:logZeroError3_0 :: Nat → 0':s:logZeroError
Lemmas:
minus(gen_0':s:logZeroError3_0(n5_0), gen_0':s:logZeroError3_0(n5_0)) → gen_0':s:logZeroError3_0(0), rt ∈ Ω(1 + n50)
Generator Equations:
gen_0':s:logZeroError3_0(0) ⇔ 0'
gen_0':s:logZeroError3_0(+(x, 1)) ⇔ s(gen_0':s:logZeroError3_0(x))
The following defined symbols remain to be analysed:
quot, le, inc, logIter
They will be analysed ascendingly in the following order:
quot < logIter
le < logIter
inc < logIter
(12) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)
Could not prove a rewrite lemma for the defined symbol quot.
(13) Obligation:
TRS:
Rules:
minus(
x,
0') →
xminus(
s(
x),
s(
y)) →
minus(
x,
y)
quot(
0',
s(
y)) →
0'quot(
s(
x),
s(
y)) →
s(
quot(
minus(
x,
y),
s(
y)))
le(
0',
y) →
truele(
s(
x),
0') →
falsele(
s(
x),
s(
y)) →
le(
x,
y)
inc(
s(
x)) →
s(
inc(
x))
inc(
0') →
s(
0')
log(
x) →
logIter(
x,
0')
logIter(
x,
y) →
if(
le(
s(
0'),
x),
le(
s(
s(
0')),
x),
quot(
x,
s(
s(
0'))),
inc(
y))
if(
false,
b,
x,
y) →
logZeroErrorif(
true,
false,
x,
s(
y)) →
yif(
true,
true,
x,
y) →
logIter(
x,
y)
Types:
minus :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
0' :: 0':s:logZeroError
s :: 0':s:logZeroError → 0':s:logZeroError
quot :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
le :: 0':s:logZeroError → 0':s:logZeroError → true:false
true :: true:false
false :: true:false
inc :: 0':s:logZeroError → 0':s:logZeroError
log :: 0':s:logZeroError → 0':s:logZeroError
logIter :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
if :: true:false → true:false → 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
logZeroError :: 0':s:logZeroError
hole_0':s:logZeroError1_0 :: 0':s:logZeroError
hole_true:false2_0 :: true:false
gen_0':s:logZeroError3_0 :: Nat → 0':s:logZeroError
Lemmas:
minus(gen_0':s:logZeroError3_0(n5_0), gen_0':s:logZeroError3_0(n5_0)) → gen_0':s:logZeroError3_0(0), rt ∈ Ω(1 + n50)
Generator Equations:
gen_0':s:logZeroError3_0(0) ⇔ 0'
gen_0':s:logZeroError3_0(+(x, 1)) ⇔ s(gen_0':s:logZeroError3_0(x))
The following defined symbols remain to be analysed:
le, inc, logIter
They will be analysed ascendingly in the following order:
le < logIter
inc < logIter
(14) RewriteLemmaProof (LOWER BOUND(ID) transformation)
Proved the following rewrite lemma:
le(
gen_0':s:logZeroError3_0(
n320_0),
gen_0':s:logZeroError3_0(
n320_0)) →
true, rt ∈ Ω(1 + n320
0)
Induction Base:
le(gen_0':s:logZeroError3_0(0), gen_0':s:logZeroError3_0(0)) →RΩ(1)
true
Induction Step:
le(gen_0':s:logZeroError3_0(+(n320_0, 1)), gen_0':s:logZeroError3_0(+(n320_0, 1))) →RΩ(1)
le(gen_0':s:logZeroError3_0(n320_0), gen_0':s:logZeroError3_0(n320_0)) →IH
true
We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).
(15) Complex Obligation (BEST)
(16) Obligation:
TRS:
Rules:
minus(
x,
0') →
xminus(
s(
x),
s(
y)) →
minus(
x,
y)
quot(
0',
s(
y)) →
0'quot(
s(
x),
s(
y)) →
s(
quot(
minus(
x,
y),
s(
y)))
le(
0',
y) →
truele(
s(
x),
0') →
falsele(
s(
x),
s(
y)) →
le(
x,
y)
inc(
s(
x)) →
s(
inc(
x))
inc(
0') →
s(
0')
log(
x) →
logIter(
x,
0')
logIter(
x,
y) →
if(
le(
s(
0'),
x),
le(
s(
s(
0')),
x),
quot(
x,
s(
s(
0'))),
inc(
y))
if(
false,
b,
x,
y) →
logZeroErrorif(
true,
false,
x,
s(
y)) →
yif(
true,
true,
x,
y) →
logIter(
x,
y)
Types:
minus :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
0' :: 0':s:logZeroError
s :: 0':s:logZeroError → 0':s:logZeroError
quot :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
le :: 0':s:logZeroError → 0':s:logZeroError → true:false
true :: true:false
false :: true:false
inc :: 0':s:logZeroError → 0':s:logZeroError
log :: 0':s:logZeroError → 0':s:logZeroError
logIter :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
if :: true:false → true:false → 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
logZeroError :: 0':s:logZeroError
hole_0':s:logZeroError1_0 :: 0':s:logZeroError
hole_true:false2_0 :: true:false
gen_0':s:logZeroError3_0 :: Nat → 0':s:logZeroError
Lemmas:
minus(gen_0':s:logZeroError3_0(n5_0), gen_0':s:logZeroError3_0(n5_0)) → gen_0':s:logZeroError3_0(0), rt ∈ Ω(1 + n50)
le(gen_0':s:logZeroError3_0(n320_0), gen_0':s:logZeroError3_0(n320_0)) → true, rt ∈ Ω(1 + n3200)
Generator Equations:
gen_0':s:logZeroError3_0(0) ⇔ 0'
gen_0':s:logZeroError3_0(+(x, 1)) ⇔ s(gen_0':s:logZeroError3_0(x))
The following defined symbols remain to be analysed:
inc, logIter
They will be analysed ascendingly in the following order:
inc < logIter
(17) RewriteLemmaProof (LOWER BOUND(ID) transformation)
Proved the following rewrite lemma:
inc(
gen_0':s:logZeroError3_0(
n621_0)) →
gen_0':s:logZeroError3_0(
+(
1,
n621_0)), rt ∈ Ω(1 + n621
0)
Induction Base:
inc(gen_0':s:logZeroError3_0(0)) →RΩ(1)
s(0')
Induction Step:
inc(gen_0':s:logZeroError3_0(+(n621_0, 1))) →RΩ(1)
s(inc(gen_0':s:logZeroError3_0(n621_0))) →IH
s(gen_0':s:logZeroError3_0(+(1, c622_0)))
We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).
(18) Complex Obligation (BEST)
(19) Obligation:
TRS:
Rules:
minus(
x,
0') →
xminus(
s(
x),
s(
y)) →
minus(
x,
y)
quot(
0',
s(
y)) →
0'quot(
s(
x),
s(
y)) →
s(
quot(
minus(
x,
y),
s(
y)))
le(
0',
y) →
truele(
s(
x),
0') →
falsele(
s(
x),
s(
y)) →
le(
x,
y)
inc(
s(
x)) →
s(
inc(
x))
inc(
0') →
s(
0')
log(
x) →
logIter(
x,
0')
logIter(
x,
y) →
if(
le(
s(
0'),
x),
le(
s(
s(
0')),
x),
quot(
x,
s(
s(
0'))),
inc(
y))
if(
false,
b,
x,
y) →
logZeroErrorif(
true,
false,
x,
s(
y)) →
yif(
true,
true,
x,
y) →
logIter(
x,
y)
Types:
minus :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
0' :: 0':s:logZeroError
s :: 0':s:logZeroError → 0':s:logZeroError
quot :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
le :: 0':s:logZeroError → 0':s:logZeroError → true:false
true :: true:false
false :: true:false
inc :: 0':s:logZeroError → 0':s:logZeroError
log :: 0':s:logZeroError → 0':s:logZeroError
logIter :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
if :: true:false → true:false → 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
logZeroError :: 0':s:logZeroError
hole_0':s:logZeroError1_0 :: 0':s:logZeroError
hole_true:false2_0 :: true:false
gen_0':s:logZeroError3_0 :: Nat → 0':s:logZeroError
Lemmas:
minus(gen_0':s:logZeroError3_0(n5_0), gen_0':s:logZeroError3_0(n5_0)) → gen_0':s:logZeroError3_0(0), rt ∈ Ω(1 + n50)
le(gen_0':s:logZeroError3_0(n320_0), gen_0':s:logZeroError3_0(n320_0)) → true, rt ∈ Ω(1 + n3200)
inc(gen_0':s:logZeroError3_0(n621_0)) → gen_0':s:logZeroError3_0(+(1, n621_0)), rt ∈ Ω(1 + n6210)
Generator Equations:
gen_0':s:logZeroError3_0(0) ⇔ 0'
gen_0':s:logZeroError3_0(+(x, 1)) ⇔ s(gen_0':s:logZeroError3_0(x))
The following defined symbols remain to be analysed:
logIter
(20) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)
Could not prove a rewrite lemma for the defined symbol logIter.
(21) Obligation:
TRS:
Rules:
minus(
x,
0') →
xminus(
s(
x),
s(
y)) →
minus(
x,
y)
quot(
0',
s(
y)) →
0'quot(
s(
x),
s(
y)) →
s(
quot(
minus(
x,
y),
s(
y)))
le(
0',
y) →
truele(
s(
x),
0') →
falsele(
s(
x),
s(
y)) →
le(
x,
y)
inc(
s(
x)) →
s(
inc(
x))
inc(
0') →
s(
0')
log(
x) →
logIter(
x,
0')
logIter(
x,
y) →
if(
le(
s(
0'),
x),
le(
s(
s(
0')),
x),
quot(
x,
s(
s(
0'))),
inc(
y))
if(
false,
b,
x,
y) →
logZeroErrorif(
true,
false,
x,
s(
y)) →
yif(
true,
true,
x,
y) →
logIter(
x,
y)
Types:
minus :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
0' :: 0':s:logZeroError
s :: 0':s:logZeroError → 0':s:logZeroError
quot :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
le :: 0':s:logZeroError → 0':s:logZeroError → true:false
true :: true:false
false :: true:false
inc :: 0':s:logZeroError → 0':s:logZeroError
log :: 0':s:logZeroError → 0':s:logZeroError
logIter :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
if :: true:false → true:false → 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
logZeroError :: 0':s:logZeroError
hole_0':s:logZeroError1_0 :: 0':s:logZeroError
hole_true:false2_0 :: true:false
gen_0':s:logZeroError3_0 :: Nat → 0':s:logZeroError
Lemmas:
minus(gen_0':s:logZeroError3_0(n5_0), gen_0':s:logZeroError3_0(n5_0)) → gen_0':s:logZeroError3_0(0), rt ∈ Ω(1 + n50)
le(gen_0':s:logZeroError3_0(n320_0), gen_0':s:logZeroError3_0(n320_0)) → true, rt ∈ Ω(1 + n3200)
inc(gen_0':s:logZeroError3_0(n621_0)) → gen_0':s:logZeroError3_0(+(1, n621_0)), rt ∈ Ω(1 + n6210)
Generator Equations:
gen_0':s:logZeroError3_0(0) ⇔ 0'
gen_0':s:logZeroError3_0(+(x, 1)) ⇔ s(gen_0':s:logZeroError3_0(x))
No more defined symbols left to analyse.
(22) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n1) was proven with the following lemma:
minus(gen_0':s:logZeroError3_0(n5_0), gen_0':s:logZeroError3_0(n5_0)) → gen_0':s:logZeroError3_0(0), rt ∈ Ω(1 + n50)
(23) BOUNDS(n^1, INF)
(24) Obligation:
TRS:
Rules:
minus(
x,
0') →
xminus(
s(
x),
s(
y)) →
minus(
x,
y)
quot(
0',
s(
y)) →
0'quot(
s(
x),
s(
y)) →
s(
quot(
minus(
x,
y),
s(
y)))
le(
0',
y) →
truele(
s(
x),
0') →
falsele(
s(
x),
s(
y)) →
le(
x,
y)
inc(
s(
x)) →
s(
inc(
x))
inc(
0') →
s(
0')
log(
x) →
logIter(
x,
0')
logIter(
x,
y) →
if(
le(
s(
0'),
x),
le(
s(
s(
0')),
x),
quot(
x,
s(
s(
0'))),
inc(
y))
if(
false,
b,
x,
y) →
logZeroErrorif(
true,
false,
x,
s(
y)) →
yif(
true,
true,
x,
y) →
logIter(
x,
y)
Types:
minus :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
0' :: 0':s:logZeroError
s :: 0':s:logZeroError → 0':s:logZeroError
quot :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
le :: 0':s:logZeroError → 0':s:logZeroError → true:false
true :: true:false
false :: true:false
inc :: 0':s:logZeroError → 0':s:logZeroError
log :: 0':s:logZeroError → 0':s:logZeroError
logIter :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
if :: true:false → true:false → 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
logZeroError :: 0':s:logZeroError
hole_0':s:logZeroError1_0 :: 0':s:logZeroError
hole_true:false2_0 :: true:false
gen_0':s:logZeroError3_0 :: Nat → 0':s:logZeroError
Lemmas:
minus(gen_0':s:logZeroError3_0(n5_0), gen_0':s:logZeroError3_0(n5_0)) → gen_0':s:logZeroError3_0(0), rt ∈ Ω(1 + n50)
le(gen_0':s:logZeroError3_0(n320_0), gen_0':s:logZeroError3_0(n320_0)) → true, rt ∈ Ω(1 + n3200)
inc(gen_0':s:logZeroError3_0(n621_0)) → gen_0':s:logZeroError3_0(+(1, n621_0)), rt ∈ Ω(1 + n6210)
Generator Equations:
gen_0':s:logZeroError3_0(0) ⇔ 0'
gen_0':s:logZeroError3_0(+(x, 1)) ⇔ s(gen_0':s:logZeroError3_0(x))
No more defined symbols left to analyse.
(25) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n1) was proven with the following lemma:
minus(gen_0':s:logZeroError3_0(n5_0), gen_0':s:logZeroError3_0(n5_0)) → gen_0':s:logZeroError3_0(0), rt ∈ Ω(1 + n50)
(26) BOUNDS(n^1, INF)
(27) Obligation:
TRS:
Rules:
minus(
x,
0') →
xminus(
s(
x),
s(
y)) →
minus(
x,
y)
quot(
0',
s(
y)) →
0'quot(
s(
x),
s(
y)) →
s(
quot(
minus(
x,
y),
s(
y)))
le(
0',
y) →
truele(
s(
x),
0') →
falsele(
s(
x),
s(
y)) →
le(
x,
y)
inc(
s(
x)) →
s(
inc(
x))
inc(
0') →
s(
0')
log(
x) →
logIter(
x,
0')
logIter(
x,
y) →
if(
le(
s(
0'),
x),
le(
s(
s(
0')),
x),
quot(
x,
s(
s(
0'))),
inc(
y))
if(
false,
b,
x,
y) →
logZeroErrorif(
true,
false,
x,
s(
y)) →
yif(
true,
true,
x,
y) →
logIter(
x,
y)
Types:
minus :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
0' :: 0':s:logZeroError
s :: 0':s:logZeroError → 0':s:logZeroError
quot :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
le :: 0':s:logZeroError → 0':s:logZeroError → true:false
true :: true:false
false :: true:false
inc :: 0':s:logZeroError → 0':s:logZeroError
log :: 0':s:logZeroError → 0':s:logZeroError
logIter :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
if :: true:false → true:false → 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
logZeroError :: 0':s:logZeroError
hole_0':s:logZeroError1_0 :: 0':s:logZeroError
hole_true:false2_0 :: true:false
gen_0':s:logZeroError3_0 :: Nat → 0':s:logZeroError
Lemmas:
minus(gen_0':s:logZeroError3_0(n5_0), gen_0':s:logZeroError3_0(n5_0)) → gen_0':s:logZeroError3_0(0), rt ∈ Ω(1 + n50)
le(gen_0':s:logZeroError3_0(n320_0), gen_0':s:logZeroError3_0(n320_0)) → true, rt ∈ Ω(1 + n3200)
Generator Equations:
gen_0':s:logZeroError3_0(0) ⇔ 0'
gen_0':s:logZeroError3_0(+(x, 1)) ⇔ s(gen_0':s:logZeroError3_0(x))
No more defined symbols left to analyse.
(28) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n1) was proven with the following lemma:
minus(gen_0':s:logZeroError3_0(n5_0), gen_0':s:logZeroError3_0(n5_0)) → gen_0':s:logZeroError3_0(0), rt ∈ Ω(1 + n50)
(29) BOUNDS(n^1, INF)
(30) Obligation:
TRS:
Rules:
minus(
x,
0') →
xminus(
s(
x),
s(
y)) →
minus(
x,
y)
quot(
0',
s(
y)) →
0'quot(
s(
x),
s(
y)) →
s(
quot(
minus(
x,
y),
s(
y)))
le(
0',
y) →
truele(
s(
x),
0') →
falsele(
s(
x),
s(
y)) →
le(
x,
y)
inc(
s(
x)) →
s(
inc(
x))
inc(
0') →
s(
0')
log(
x) →
logIter(
x,
0')
logIter(
x,
y) →
if(
le(
s(
0'),
x),
le(
s(
s(
0')),
x),
quot(
x,
s(
s(
0'))),
inc(
y))
if(
false,
b,
x,
y) →
logZeroErrorif(
true,
false,
x,
s(
y)) →
yif(
true,
true,
x,
y) →
logIter(
x,
y)
Types:
minus :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
0' :: 0':s:logZeroError
s :: 0':s:logZeroError → 0':s:logZeroError
quot :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
le :: 0':s:logZeroError → 0':s:logZeroError → true:false
true :: true:false
false :: true:false
inc :: 0':s:logZeroError → 0':s:logZeroError
log :: 0':s:logZeroError → 0':s:logZeroError
logIter :: 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
if :: true:false → true:false → 0':s:logZeroError → 0':s:logZeroError → 0':s:logZeroError
logZeroError :: 0':s:logZeroError
hole_0':s:logZeroError1_0 :: 0':s:logZeroError
hole_true:false2_0 :: true:false
gen_0':s:logZeroError3_0 :: Nat → 0':s:logZeroError
Lemmas:
minus(gen_0':s:logZeroError3_0(n5_0), gen_0':s:logZeroError3_0(n5_0)) → gen_0':s:logZeroError3_0(0), rt ∈ Ω(1 + n50)
Generator Equations:
gen_0':s:logZeroError3_0(0) ⇔ 0'
gen_0':s:logZeroError3_0(+(x, 1)) ⇔ s(gen_0':s:logZeroError3_0(x))
No more defined symbols left to analyse.
(31) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n1) was proven with the following lemma:
minus(gen_0':s:logZeroError3_0(n5_0), gen_0':s:logZeroError3_0(n5_0)) → gen_0':s:logZeroError3_0(0), rt ∈ Ω(1 + n50)
(32) BOUNDS(n^1, INF)